﻿#region Using

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Collections.Specialized;

#endregion

public partial class Blog_Widgets_TagCloud_Edit : WidgetEditBase
{

    protected override void OnLoad(EventArgs e)
    {
        StringDictionary settings = GetSettings();
        string minimumPosts = "1";
        if (settings.ContainsKey("minimumposts"))
            minimumPosts = settings["minimumposts"];

        ddlNumber.SelectedValue = minimumPosts;
    }

    public override void Save()
    {
        StringDictionary settings = GetSettings();
        settings["minimumposts"] = ddlNumber.SelectedValue;
        SaveSettings(settings);
        Blog_Widgets_TagCloud_Widget.Reload();
    }
}
